package com.company.project.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;


import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 *
 * @author wenbin
 * @email *****@mail.com
 * @date 2021-05-20 10:20:50
 */
@Data
@TableName("user_book")
public class UserBookEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId("id")
	private String id;

	/**
	 * 图书id
	 */
	@TableField("book_id")
	private String bookId;

	/**
	 * 用户id
	 */
	@TableField("user_id")
	private String userId;

	/**
	 * 借阅状态 1正在借阅 0已归还
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;

	/**
	 * 是否删除(1未删除；0已删除)
	 */
	@TableField("deleted")
	private Integer deleted;

	@TableField(exist = false)
	@ApiModelProperty(value = "用户信息")
	private SysUser sysUser;

	@TableField(exist = false)
	@ApiModelProperty(value = "图书信息")
	private BookEntity book;




}
